package com.example.demo.entity;

import javax.persistence.Embeddable;

@Embeddable	//作为另一个实体类的嵌入类，不能单独作为实体类
public class Address {
	private String address;
	private String postCode;
	

	public String getAddress() {
		return address;
	}


	public void setAddress(String address) {
		this.address = address;
	}


	public String getPostCode() {
		return postCode;
	}


	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}


	public Address() {
	}
}